<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/WEB-INF/jsp/admin/inc/taglibs.jsp"%>
<%@ include file="/WEB-INF/jsp/admin/inc/meta.jsp"%>
   <script type="text/javascript">
            /* <![CDATA[ */
            jQuery(function(){
                jQuery("#name").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "商标名称不能为空"
                });   
                jQuery("#sn").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "商标注册号不能为空"
                });   
                jQuery("#price").validate({
                	expression: "if(isVInteger(VAL)) return true; else return false;",
                    message: "交易价格只能是数字"
                });   
                jQuery("#indate").validate({
                	expression: "if (isVDate(VAL)) return true; else return false;",
                    message: "有效期格式  eg: 2011-08-26"
                });   
                jQuery("#owner").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "商标持有人不能为空"
                });   
                jQuery("#useRang").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "适用范围不能为空"
                });   
                jQuery("#brief").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "商标说明不能为空"
                });   
                jQuery('#item').validated(function(){
					//alert("通过验证");
                	 ajax_submit('yes','no','添加','${approot}${rooturi}/add','${approot}${rooturi}/list/${online_product_category_id}/menu/0/0');
				});
            });
            /* ]]> */
        </script>
</head>  
  <body style="padding-left: 10px;padding-right: 10px;padding-top: 10px;">
  <div class="title_0">您的位置：商标管理 &gt;&gt; 添加商标</div>
 
<div class="add clear">
<div class="blank12"></div>
<form method="post" action="" id="item">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="add_table">
  <tr>
    <td width="21%"><span class="right">商标名称<font color='red'>*</font></span></td>
    <td width="79%"><input type="text" id="name" name="name">
         </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标注册号<font color='red'>*</font></span></td>
    <td width="79%"><input type="text" id="sn" name="sn">
         </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标图案<font color='red'>*</font></span></td>
    <td width="79%"><input type="text" id="img" name="img"> 
    <a href="${approot}${rooturi}/toUpload" onclick="showWebContent('uploadView','60','40')" id="uploadView"><font color='red'>上传图标</font></a>
    </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">交易价格<font color='red'>*</font></span></td>
    <td width="79%"><input type="text" id="price" name="price">
         </td>
  </tr>
   <tr>
    <td width="21%"><span class="right">有效期<font color='red'>*</font></span></td>
    <td width="79%"><input type="text" id="indate" name="indate" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})"/>
      </td>
    </tr>
  <tr>
    <td width="21%"><span class="right">交易类型</span></td>
    <td width="79%">
    <input type="radio" name="tradeType" value="1" checked="checked"/>转让
    <input type="radio" name="tradeType" value="2"/>许可
   </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标类型</span></td>
    <td width="79%">
    <input type="radio" name="type" value="1" checked="checked"/>中文
    <input type="radio" name="type" value="2"/>英文
    <input type="radio" name="type" value="3"/>图形
    <input type="radio" name="type" value="4"/>组合
   </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标持有人<font color='red'>*</font></span></td>
    <td width="79%"><input type="text" id="owner" name="owner">
         </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标持有人电话</span></td>
    <td width="79%"><input type="text" id="ownerTel" name="ownerTel">
         </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标持有人地址</span></td>
    <td width="79%"><textarea rows="2" cols="60" name="ownerAddress" id="ownerAddress"></textarea>
         </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">适用范围<font color='red'>*</font></span></td>
    <td width="79%"><textarea rows="4" cols="60" name="useRang" id="useRang"></textarea>
         </td>
  </tr>
  <tr>
    <td width="21%"><span class="right">商标说明<font color='red'>*</font></span></td>
    <td width="79%"><textarea rows="4" cols="60" name="brief" id="brief"></textarea>
         </td>
  </tr>

</table>

<div align="center"> 
  <input type="hidden" name="categoryId" value="${online_product_category_id}"/>         
  <input class="button_0" name="" type="submit" value="提 交" />  
  <input class="button_0" name="" type="button" value="返回" onclick="history.go(-1)"/>  
  </div>
  </form>
<p>&nbsp;</p>
<div class="blank12"></div>
</div>
</body>
</html>
